import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';

export interface StaticInfo {
  id: number;
  name: string;
  type: string; // js、css等
  url: string;
}

export interface StaticParams extends BasicPageParams {
  name?: string;
  type?: string;
}

export interface StaticListGetResultModel extends BasicFetchResult<StaticInfo> {}

// Request Types
export interface StaticAddReq {
  name: string;
  type: string;
  url: string;
}

export interface StaticEditReq extends StaticAddReq {
  id: number;
}

export interface StaticDelReq {
  id: number;
}

export interface StaticUploadResp {
  url: string;
}
